var fsenable = FS.issupport();
console.log('FS enable '+fsenable);
var writefile = 'test FS write buffer:hello world';
var ret = FS.write('/spiffs/hello.js',writefile,'w+');
console.log('FS.write+'+ret);
var ret = FS.read('/spiffs/hello.js');
console.log('FS read hello.js ='+ ret);
var ret = FS.rename('/spiffs/hello.js','/spiffs/hello1.js');
console.log('FS rename ='+ ret);
var ret = FS.read('/spiffs/hello1.js');
console.log('FS read hello1.js='+ ret);
var ret = FS.delete('/spiffs/hello1.js');
console.log('FS delete ='+ ret);